const fs = require("fs");
let txtdata = JSON.stringify({ filename: "星月神话2", filehash: "1231234321-321" }) + "-$$-";
fs.writeFile("./filename-hash.list",txtdata,{ flag: "a", encoding: "utf-8" },
  (err) => {
    if(err){
        console.log(err)
    }
  }
);
fs.readFile("./filename-hash.list",{encoding:'utf-8'},(err,data)=>{
    if(err){
        console.log(err)
    }
    let files = data.split('-$$-')
    console.log(JSON.parse(files[0]))
})